コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     collapse      = false;
     checker       = GameObject.FindObjectOfType <FlipLever>();
     startPosition = transform.position;
     scraping      = GetComponent <AudioSource>();
     if (name == "Hazards")
     {
         consistence = GameObject.FindObjectOfType <CollapseCeiling>();
     }
 }
コード例 #2
0
 void Start()
 {
     take       = GameObject.Find("FalseDoorLetOut").transform.position;
     checker    = GameObject.FindObjectOfType <FlipLever>();
     doorSprite = GameObject.Find("Level2Door_0");
 }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     collapse = false;
     checker  = GameObject.FindObjectOfType <FlipLever>();
 }