- Home /
Question by
TGamingStudio · Jul 30, 2017 at 01:29 PM ·
other
Frames - two scripts
I have two codes .... in one code when triggers collider setactive collider to false in other starts animation but it only sets the collider to false and dont start animation ...
if(other.gameObject.name == "Door_colider")
{
rozpravanie = 1;
Play();
other.gameObject.SetActive(false);
}
....
if (other.tag == "Player")
{
Door.GetComponent<Animation>().Play("Dvere_zatvaranie");
}
Comment