// Use this for initialization void Start() { m_pizza_spell = GameObject.Find("PizzaSpell").GetComponent <PizzaSpell>(); if (m_direction < 0.0f) { transform.rotation = Quaternion.AngleAxis(180.0f, new Vector3(0.0f, 0.0f, 1.0f)); } }
// Use this for initialization public void Start() { anim = GetComponent <Animator>(); m_rb2d = GetComponent <Rigidbody2D>(); m_default_scale = transform.localScale; m_rb2d.centerOfMass = new Vector2(0.0f, -1.0f); m_rb2d.freezeRotation = true; if (m_pizza_spell == null) { m_pizza_spell = GameObject.Find("PizzaSpell").GetComponent <PizzaSpell>(); } }
void Start() { m_pizza_spell = GameObject.Find("PizzaSpell").GetComponent <PizzaSpell>(); }