Esempio n. 1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
    void Awake()
    {
        GetInstance = this;
        //ignoreLayerIndex = 9;// LayerMask.GetMask("Player", "IgnoreCollision");
        Character_A = GameObject.Find("Character_A");
        Character_B = GameObject.Find("Character_B");

        //colliderCheck.cs 中碰撞题所在层级判断
        colliderLayer_world_A = GameObject.Find("WorldA").layer;
        colliderLayer_world_B = GameObject.Find("WorldB").layer;
    }