Пример #1
0
    public void celloptionaction(Transform hit)
    {
        cellaction cellref = hit.GetComponent <cellaction>();

        if (!cellref.cellOptionOn)
        {
            cellref.cellOptionOn = true;
        }
        else
        {
            cellref.cellOptionOn = false;
        }
    }
 void Start()
 {
     cellactionref = transform.GetComponentInParent <cellaction>();
     transform.LookAt(cellactionref.spawnloc);
     parentcell = transform.parent;
 }