protected override void OnInitialize() { eAttacks[0] = new IceBallAttack(this, iceballPrefab); eAttacks[1] = new FireBallAttack(this); eAttacks[2] = new NetworkAttack(new TelegraphAttack(this, telegraph)); spriteFlip = new CompoundSpriteFlip(gameObject, defaultDirection); }
protected override void OnInitialize() { eAttacks[0] = new AppleAttack(this, apple, greenApple); eAttacks[1] = new NetworkAttack(new CalcBookAttack(this, InstantiateBooks())); eAttacks[2] = new NetworkAttack(new GravityWellAttack(this, gravityWell)); animator = GetComponent <Animator>(); spriteFlip = new CompoundSpriteFlip(gameObject, defaultDirection); }
protected override void OnInitialize() { gunGo = Instantiate(gunPrefab, transform.position + GetGunOffset(defaultDirection), Quaternion.identity); eAttacks[0] = new GunAttack(this, gunGo, bulletPrefab); eAttacks[1] = new GeligniteAttack(this, gelignitePrefab); eAttacks[2] = new DynamiteAttack(this); spriteFlip = new CompoundSpriteFlip(gameObject, defaultDirection); }
protected override void OnInitialize() { boneArm = Instantiate(boneArmPrefab, transform.position + GetBoneArmOffset(defaultDirection), Quaternion.identity); paintbrush = Instantiate(paintbrushPrefab, transform.position + GetPaintbrushOffset(defaultDirection), Quaternion.identity); paintDropPrefabIndex = GameController.PrefabToIndex(paintDropPrefab); eAttacks[0] = new NetworkAttack(new PaintbrushAttack(this, paintbrush.GetComponent <Paintbrush>())); eAttacks[1] = new NetworkAttack(new BoneArmAttack(this, boneArm.GetComponent <BoneArm>())); eAttacks[2] = new FlyingMachineAttack(this); playerFlip = new CompoundSpriteFlip(gameObject, defaultDirection); boneArmFlip = new CompoundSpriteFlip(boneArm, defaultDirection.Opposite()); boneArmFlip.Flip(defaultDirection); }