/// <summary> /// Setup all the references the core is going to need to do it's job. /// </summary> private void LinkToEntityCore() { if (thisType == EntityType.Player) { player = this.gameObject.GetComponent <Player>(); } else if (thisType == EntityType.Sentry) { sentry = this.gameObject.GetComponent <Sentry>(); } else if (thisType == EntityType.Proxy) { proxy = this.gameObject.GetComponent <Machine>().machineAsProxy; } else if (thisType == EntityType.Machine) { machine = this.gameObject.GetComponent <Machine>(); } else if (thisType == EntityType.MachineSentry) { machineSentry = this.gameObject.GetComponent <Sentry>().machineSentry; } else if (thisType == EntityType.Tile) { tile = this.gameObject.GetComponent <Tile>(); } else if (thisType == EntityType.Pawn) { pawn = this.gameObject.GetComponent <Pawn>(); } }
private static void DamageAction(Machine.Proxy proxyScript, float rawDamage) { }