Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     player   = FindObjectOfType <Player>();
     DeadBody = FindObjectOfType <Deathbody>();
     fly();
     StartCoroutine(Explode());
 }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     player   = FindObjectOfType <Player>();
     DeadBody = FindObjectOfType <Deathbody>();
 }