コード例 #1
0
        public override void behaviorOnCollisionWithOther(GameLocation location)
        {
            Cropbeast beast = theOneWhoFiredMe.Get(location) as Cropbeast;

            beast?.onProjectileSpoiled();
            explode(location);
        }
コード例 #2
0
        public override void behaviorOnCollisionWithTerrainFeature
            (TerrainFeature _t, Vector2 _tileLocation, GameLocation location)
        {
            Cropbeast beast = theOneWhoFiredMe.Get(location) as Cropbeast;

            beast?.onProjectileSpoiled();
            explode(location);
        }