Сергей
Ученик
(206)
3 года назад
да тут ведь всё просто, просто если ты зашел в другой триггер отследи это if(other.gameobject.tag == "drugoytrigger"){
object1.SetActive(true);// объект который тебе надо включаешь
object2.SetActive(false);// другой объект выключаешь
}
using UnityEngine;
using System.Collections;
public class TriggerAxeUp : MonoBehaviour {
public GameObject Axe;
public GameObject Del;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter(Collider other)
{
if (other.tag == "Bita")
{
Axe.SetActive(true);
Del.GameObject.enabled(true);
}
}
}