Example #1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (CurrentBoomerang.Mode == Boomerang.BoomerangModes.TRAVEL)
     {
         CurrentBoomerang.Collided(true);
     }
 }
Example #2
0
    // Start is called before the first frame update
    void Start()
    {
        NormalRang       = new NormalBoomerang(this);
        FireRang         = new FireBoomerang(this);
        IceRang          = new IceBoomerang(this);
        ShockRang        = new ShockBoomerang(this);
        WindRang         = new WindBoomerang(this);
        ObsidianRang     = new ObsidianBoomerang(this);
        CurrentBoomerang = NormalRang;

        CurrentBoomerang.SetColor(CurrentBoomerang.BoomerangColor);
        Debug.Log(CurrentBoomerang.Type);
    }
Example #3
0
 void FixedUpdate()
 {
     CurrentBoomerang.HandleBoomerang();
 }