using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TagAssignCube : MonoBehaviour
{
public GameObject cube;
// Use this for initialization
void Start ()
{
cube = GameObject.Find ("Cube");
cube.tag= 'Player';
}
// Update is called once per frame
void Update ()
{
}
}
Trying to tag the gameobject Cube in my scene through code.