コード例 #1
0
ファイル: CameraFollow.cs プロジェクト: Chudow/Space-Racer
 // Use this for initialization
 void Start()
 {
     levelRestart       = GameObject.FindGameObjectWithTag("Holder of scripts").GetComponent <LevelRestart>();
     player             = GameObject.FindGameObjectWithTag("Player");
     lookAtMe           = player.transform.GetChild(0);
     transform.position = player.transform.position - posDiff;
 }
コード例 #2
0
 public static void CallLevelRestart()
 {
     LevelRestart?.Invoke();
 }