예제 #1
0
        void TileHit(MapSystem.Tile _tile)
        {
            TileHitEvent tileHitEventInfo = new TileHitEvent();

            tileHitEventInfo.Description = "Actor " + gameObject.name + " has hit something";
            tileHitEventInfo.tile_go     = gameObject;
            tileHitEventInfo.FireEvent();
        }
예제 #2
0
        void TileAttack(MapSystem.Tile _tile)
        {
            TileAttackEvent tileAttackEventiInfo = new TileAttackEvent();

            tileAttackEventiInfo.Description = "Unit " + gameObject.name + " has just attacked";
            tileAttackEventiInfo.tile_go     = gameObject;
            tileAttackEventiInfo.FireEvent();
        }
예제 #3
0
        void TakeDamage(MapSystem.Tile _tile)
        {
            TileDamageEvent tileDamageEventInfo = new TileDamageEvent();


            tileDamageEventInfo.Description = "Actorr] " + gameObject.name + " has taken damage.";
            tileDamageEventInfo.tile_go     = gameObject;
            tileDamageEventInfo.FireEvent();
        }
예제 #4
0
        void TileDie(MapSystem.Tile _tile)
        {
            TileDeathEvent tileDeathEventInfo = new TileDeathEvent();

            tileDeathEventInfo.Description = "Actor " + gameObject.name + " has died.";
            tileDeathEventInfo.tile_go     = gameObject;
            tileDeathEventInfo.FireEvent();

            Destroy(gameObject);
        }
예제 #5
0
 void Heal(MapSystem.Tile _tile)
 {
 }