示例#1
0
 private void Awake()
 {
     if (controller == null)
     {
         controller = this;
     }
 }
示例#2
0
    public void RegisterGate(lockedGate gate)
    {
        GameObject key = gate.key;

        if (!KeyTable.ContainsKey(key))
        {
            KeyTable.Add(key, new List <lockedGate>());
            KeyTable[key].Add(gate);
        }
        print("registering " + gate.gameObject.name + " = " + key.name);
    }