/// <summary> /// Init startVals /// </summary> public void Init() { m_TakenFood = 0; m_ShortestPathToBaseByScout = 0; m_DistanceToBase = Vector3.Distance(transform.position, Vector3.zero) / ColonyOptions.FieldSclaling; m_Base = FindObjectOfType <BaseScript>(); m_Base.AddCupcakeData(this); Debug.Log(m_DistanceToBase); }